package com.xucy.springboot.designmodel.structural.decorator;

/**
 * @Author xucy
 * @Date 2019-07-18 10:35
 * @Description 食材装饰类
 **/

public class FoodDecoration extends Cake {
    public Cake cake;

    public FoodDecoration(Cake cake){
        this.cake=cake;
    }

    @Override
    public String description() {
        return cake.description();
    }

    @Override
    public int cost() {
        return cake.cost();
    }
}
